package com.itzhoun;

/**
 * @author 周楠
 * @Date 2023/03/06/下午 10:50
 */
public class Light {

    String loc = "";

    public Light(String loc) {
        this.loc = loc;
    }

    public void on(){
        System.out.println(loc + "on");
    }

    public void off(){
        System.out.println(loc + "off");
    }
}
